package config

import "fmt"

type System struct {
	ProjectName    string `yaml:"projectName"`
	PrometheusAddr string `yaml:"prometheus_addr"`
	Host           string `yaml:"host"`
	Port           int    `yaml:"port"`
	Env            string `yaml:"env"`
	LogFileDir     string `yaml:"logFileDir"`
	LogFilePath    string `yaml:"logFilePath"`
	LogMaxSize     int    `yaml:"logMaxSize"`
	LogMaxDay      int    `yaml:"logMaxDay"`
	LogMaxBackup   int    `yaml:"logMaxBackup"`
}

func (s *System) Addr() string {
	return fmt.Sprintf("%s:%d", s.Host, s.Port)
}
